﻿using System;
using System.Web.UI.WebControls;

using Cosoware.Web.HttpModules;

public partial class _Default : System.Web.UI.Page
{

    protected override void OnLoad(EventArgs e)
    {
        base.OnLoad(e);
        AddBlogRecord("Test <i>record</i>", "Test <i>record</i>");
        AddBlogRecord("Test <i>record 2</i>", "Test <i>record 2</i>");
    }

    private void AddBlogRecord(String title, String text)
    {
        //BlogRecord record = (BlogRecord) LoadControl("BlogRecord.ascx");
        //record.Title = title;
        //record.Content = text;
        //pholderBlogLine.Controls.Add(record);
        foreach (string s in ThemeManagementModule.Themes)
        {
            Literal l = new Literal();
            l.Text = s;
            pholderBlogLine.Controls.Add(l);
        }
    }
}
